import { createRouter, createWebHashHistory } from 'vue-router'
import TodoList from '../pages/TodoList.vue'
import Pomodoro from '../pages/Pomodoro.vue'
import MoodTracker from '../pages/MoodTracker.vue'

const routes = [
  {
    path: '/',
    redirect: '/todo'
  },
  {
    path: '/todo',
    name: 'TodoList',
    component: TodoList
  },
  {
    path: '/pomodoro',
    name: 'Pomodoro',
    component: Pomodoro
  },
  {
    path: '/mood',
    name: 'MoodTracker',
    component: MoodTracker
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router 